package com.wzcl.app.controller;

import com.wzcl.app.dao.model.TopUpOrder;
import com.wzcl.app.model.common.RVO;
import com.wzcl.app.model.dto.TopUpOrderDto;
import com.wzcl.app.service.TopUpOrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author beingven
 * @Description TODO
 * @createTime 2021年01月10日 15:13:00
 */
@RestController
@Api(value = "IOS内购订单controller", tags = {"IOS内购订单接口"})
@RequestMapping("/order")
public class TopUpOrderController {
    @Resource
    private TopUpOrderService topUpOrderService;

    @ApiOperation("根据条件查询ios充值订单")
    @PostMapping("/retrieve/condition")
    public RVO selectByCondition(@RequestBody TopUpOrderDto topUpOrderDto){
        return RVO.success(topUpOrderService.selectByCondition(topUpOrderDto));
    }
}